<?php
namespace app\gacj\admin;
use app\admin\controller\Admin;
use app\common\builder\ZBuilder;

/**
 * 滚动图片控制器
 * @package app\gacj\admin
 */
class Ajax extends Admin
{
    public function get_floor_exhibition($floor_id)
    {
        $res = db('gacj_exhibition')->where('floor_id', $floor_id)->select();
        $list = [];
        foreach($res as $k=>$v){
            $list[] = ['key'=>$v['id'], 'value'=>$v['title']];
        }

        $arr['code'] = '1'; //判断状态
        $arr['msg'] = '请求成功'; //回传信息
        $arr['list'] = $list; //数据
        return json($arr);
    }
}